import 'package:get/get.dart';
import 'package:myapp/app/data/api/providers/api_provider.dart';
import 'package:myapp/app/data/entities/movie_model.dart';

abstract class IMovieRepository {

  Future<List<Map<String, List<Movie>>>> getMovies();
}

class MovieRepository implements IMovieRepository {

  final _apiProvider = Get.find<ApiProvider>();

  @override
  Future<List<Map<String, List<Movie>>>> getMovies() async {
    return _apiProvider.getMovies();
  }

}